package com.nlelpct.manage.mapper;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nlelpct.manage.model.dto.SysEmployeeWhetherAddDto;
import com.nlelpct.manage.model.entity.User;
import com.nlelpct.manage.model.vo.UserByPhoneVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据手机号查用户
     * @param sysEmployeeWhetherAddDto 手机号，国际区号
     * @return 查询结果
     */
    UserByPhoneVo selectByPhone(@Param("phone") String phone, @Param("areaCode") String areaCode);

    /**
     * @param phone 手机号
     * @param areaCode 国际区号
     * @return userId
     */
    String selectUserIdByPhone(@Param("phone") String phone, @Param("areaCode")String areaCode);
}
